package com.sykj.why.controller;


import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Eleven
 * @date 2019/6/5
 * @Description 基类控制层, 可再此写入一些controller的公共方法
 */

public abstract class BaseController {

    @Autowired
    private HttpServletRequest request;

    protected String getContextPath(){
        return request.getContextPath();
    }

}
